package com.iking.housekeeping.entity.changeservice;

import java.util.Date;

import com.iking.housekeeping.entity.servicerecord.ServiceRecord;
import com.iking.housekeeping.util.UUIDUtil;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;

public class ChangeService {
	/**
	 * id
	 */
	private String fId;

	/**
	 * 老人id
	 */
	private String fElderlyId;

	/**
	 * 现服务类型
	 */
	private String fOldServiceType;

	/**
	 * 现服务人员ID
	 */
	private String fOldServiceStaffId;

	/**
	 * 更改后服务人员ID
	 */
	private String fNewServiceStaffId;

	/**
	 * 需更改为***服务名称
	 */
	private String fNewServiceType;

	/**
	 * 需更改为***服务ID
	 */
	private String fNewServiceTypeId;
	/**
	 * 状态
	 */
	private String fState;

	/**
	 * 创建时间
	 */
	private Date fGmtCreat;

	/**
	 * 修改时间
	 */
	private Date fGmtModified;

	/**
	 * 是否删除
	 */
	private Boolean fIsdelete;
	/**
	 * 老人姓名
	 */
	private String fElderlyName;
	/**
	 * 老人年龄
	 */
	private Integer fAge;

	/**
	 * 老人电话
	 */
	private String fElderlyPhone;

	/**
	 * 街办社区内容
	 */
	private String fStreetCommunity;

	/**
	 * 街办社区Id
	 */
	private String fStreetCommunityId;


	/**
	 * 家属姓名
	 */
	private String fRelatioName;

	/**
	 *  家属电话
	 */
	private String fRelatioPhone;
	/**
	 * 现服务人员姓名
	 */
	private String fOldServiceStaffName;

	public ChangeService() {
		this.fIsdelete = false;
		Date now = new Date();
		this.fGmtCreat = now;
		this.fGmtModified = now;
	}

	public ChangeService(ServiceRecord serviceRecord) {
		this();
		this.fId = UUIDUtil.getUUID();
		this.fElderlyId = serviceRecord.getfElderly();
		this.fOldServiceType = serviceRecord.getfServiceType();
		this.fOldServiceStaffId = serviceRecord.getfServiceStaff();
		this.fNewServiceType = serviceRecord.getfChangedType();
		this.fState = serviceRecord.getfIsChangeType();
	}

	public String getfId() {
		return fId;
	}

	public void setfId(String fId) {
		this.fId = fId == null ? null : fId.trim();
	}

	public String getfElderlyId() {
		return fElderlyId;
	}

	public void setfElderlyId(String fElderlyId) {
		this.fElderlyId = fElderlyId == null ? null : fElderlyId.trim();
	}

	public String getfOldServiceType() {
		return fOldServiceType;
	}

	public void setfOldServiceType(String fOldServiceType) {
		this.fOldServiceType = fOldServiceType == null ? null : fOldServiceType.trim();
	}

	public String getfOldServiceStaffId() {
		return fOldServiceStaffId;
	}

	public void setfOldServiceStaffId(String fOldServiceStaffId) {
		this.fOldServiceStaffId = fOldServiceStaffId == null ? null : fOldServiceStaffId.trim();
	}

	public String getfNewServiceType() {
		return fNewServiceType;
	}

	public void setfNewServiceType(String fNewServiceType) {
		this.fNewServiceType = fNewServiceType == null ? null : fNewServiceType.trim();
	}

	public String getfState() {
		return fState;
	}

	public void setfState(String fState) {
		this.fState = fState == null ? null : fState.trim();
	}

	public Date getfGmtCreat() {
		return fGmtCreat;
	}

	public void setfGmtCreat(Date fGmtCreat) {
		this.fGmtCreat = fGmtCreat;
	}

	public Date getfGmtModified() {
		return fGmtModified;
	}

	public void setfGmtModified(Date fGmtModified) {
		this.fGmtModified = fGmtModified;
	}

	public Boolean getfIsdelete() {
		return fIsdelete;
	}

	public void setfIsdelete(Boolean fIsdelete) {
		this.fIsdelete = fIsdelete;
	}

	public String getfStreetCommunity() {
		return fStreetCommunity;
	}

	public void setfStreetCommunity(String fStreetCommunity) {
		this.fStreetCommunity = fStreetCommunity;
	}

	public Integer getfAge() {
		return fAge;
	}

	public void setfAge(Integer fAge) {
		this.fAge = fAge;
	}

	public String getfElderlyName() {
		return fElderlyName;
	}

	public void setfElderlyName(String fElderlyName) {
		this.fElderlyName = fElderlyName;
	}

	public String getfElderlyPhone() {
		return fElderlyPhone;
	}

	public void setfElderlyPhone(String fElderlyPhone) {
		this.fElderlyPhone = fElderlyPhone;
	}

	public String getfRelatioName() {
		return fRelatioName;
	}

	public void setfRelatioName(String fRelatioName) {
		this.fRelatioName = fRelatioName;
	}

	public String getfRelatioPhone() {
		return fRelatioPhone;
	}

	public void setfRelatioPhone(String fRelatioPhone) {
		this.fRelatioPhone = fRelatioPhone;
	}

	public String getfOldServiceStaffName() {
		return fOldServiceStaffName;
	}

	public void setfOldServiceStaffName(String fOldServiceStaffName) {
		this.fOldServiceStaffName = fOldServiceStaffName;
	}

	public String getfStreetCommunityId() {
		return fStreetCommunityId;
	}

	public void setfStreetCommunityId(String fStreetCommunityId) {
		this.fStreetCommunityId = fStreetCommunityId;
	}

	public String getfNewServiceTypeId() {
		return fNewServiceTypeId;
	}

	public void setfNewServiceTypeId(String fNewServiceTypeId) {
		this.fNewServiceTypeId = fNewServiceTypeId;
	}

	public String getfNewServiceStaffId() {
		return fNewServiceStaffId;
	}

	public void setfNewServiceStaffId(String fNewServiceStaffId) {
		this.fNewServiceStaffId = fNewServiceStaffId;
	}
}